const products = [
  {
    id: 1,
    name: 'iphone14 pro max',
    price: 12000,
    inventory: 5
  },

  {
    id: 2,
    name: 'iphone13',
    price: 5000,
    inventory: 2
  },

  {
    id: 3,
    name: 'iphone12',
    price: 3000,
    inventory: 6
  },

  {
    id: 4,
    name: 'iphone11',
    price: 2000,
    inventory: 1
  }
]

function data() {
  return new Promise((resolve, reject) => {
    setTimeout(() => {
      resolve(products)
    }, 1000)
  })
}

export default data